<!DOCTYPE html>
<?php session_start(); ?>
<html>
<head>
	<title>AddComment</title>
	<meta charset="UTF-8" />
</head>
<body>
<?php
	if(!isset($_SESSION["session_username"]))
    {
    	header("location:index.php");
    	exit();
	}
	$logname = $_SESSION["session_username"];
	$c = $_POST["commentContent"];
	$bkname = $_POST["commentBkname"];
	include_once "Comment.php";
	Comment::newContent($bkname,$logname,$c);
	header("location:ShowBook.php?bookname=$bkname");
?>
</body>
</html>